package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DsDemaintenancePlanMapper;
import com.ruoyi.system.domain.DsDemaintenancePlan;
import com.ruoyi.system.service.IDsDemaintenancePlanService;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
@Service
public class DsDemaintenancePlanServiceImpl implements IDsDemaintenancePlanService 
{
    @Autowired
    private DsDemaintenancePlanMapper dsDemaintenancePlanMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public DsDemaintenancePlan selectDsDemaintenancePlanById(Long id)
    {
        return dsDemaintenancePlanMapper.selectDsDemaintenancePlanById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param dsDemaintenancePlan 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<DsDemaintenancePlan> selectDsDemaintenancePlanList(DsDemaintenancePlan dsDemaintenancePlan)
    {
        return dsDemaintenancePlanMapper.selectDsDemaintenancePlanList(dsDemaintenancePlan);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param dsDemaintenancePlan 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertDsDemaintenancePlan(DsDemaintenancePlan dsDemaintenancePlan)
    {
        return dsDemaintenancePlanMapper.insertDsDemaintenancePlan(dsDemaintenancePlan);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param dsDemaintenancePlan 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateDsDemaintenancePlan(DsDemaintenancePlan dsDemaintenancePlan)
    {
        return dsDemaintenancePlanMapper.updateDsDemaintenancePlan(dsDemaintenancePlan);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDsDemaintenancePlanByIds(Long[] ids)
    {
        return dsDemaintenancePlanMapper.deleteDsDemaintenancePlanByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteDsDemaintenancePlanById(Long id)
    {
        return dsDemaintenancePlanMapper.deleteDsDemaintenancePlanById(id);
    }
}
